﻿@model GPS.MODELS.ManageUserViewModel

<p class="text-info">
    @*You do not have a local username/password for this site. Add a local
    account so you can log in without an external login.*@

</p>

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
<fieldset class="fs_body">
    <legend class="head_title">Nhập mật khẩu</legend>
    <p>Bạn đang thiết lập mật khẩu cho tài khoản <strong>@ViewBag.UserId </strong>.</p>

    @using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
    {
        @Html.AntiForgeryToken()

        @Html.ValidationSummary(true)
        <hr />
        @Html.ValidationSummary()
        <div class="form-group">
            @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Thiết lập mật khẩu" class="btn btn-default" />
                &nbsp;&nbsp;
                @Html.ActionLink("Quay lại", "Index", null, new { @class = "btn btn-primary btn-sm" })
            </div>
        </div>
        @Html.Hidden("UserId", (string)ViewBag.UserId)
    }
</fieldset>